<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;">
<title>用户登录</title>
<link type="text/css" rel=stylesheet href="${pageContext.request.contextPath}\css\style.css">
</head>
<%
	String msg=(String)session.getAttribute("msg");
	if(msg!=null){
		out.println(msg);
	session.removeAttribute("msg");	
	}
%>
<body onload="showInfo('用户')">
<div id='main' class='center'></div>
<input type="button" value="用户" onClick="showInfo(value)">
<input type="button" value="图书管理员" onClick="showInfo(value)">
<script>
			function showInfo(e){
	var xmlHttp=new XMLHttpRequest();
	if(e=="用户"){
		xmlHttp.open("GET","userlogin.jsp",true);
	}else if(e=="图书管理员"){
			xmlHttp.open("GET","managerlogin.jsp",true);
		}
	xmlHttp.onreadystatechange=function(){
		if(xmlHttp.readyState==4){		
			document.getElementById("main").innerHTML=xmlHttp.responseText;
		}
	}
	xmlHttp.send();
			}
			
				
</script>
</body>
</html>